// 引入工具类
import axios from '../config'

// 使用
const URL = 'api-ftp' // 公共前缀地址
export const breakRule = {
	//分页查询 查询所有业务元素
	findAll(data) {
		return axios.post(URL + '/ftp/breakRule/findAll', data)
	},
	save(data) {
		return axios.post(URL + '/ftp/breakRule/save', data)
	},
	findBreakRuleByCode(data) {
		return axios.post(URL + '/ftp/breakRule/findBreakRuleByCode', data)
	},
	remove(data) {
		return axios.post(URL + '/ftp/breakRule/remove', data)
	},
	findHistory(data) {
		return axios.post(URL + '/ftp/breakRule/findHistory', data)
	},
	toForm(data) {
		return axios.post(URL + '/ftp/breakRule/toForm', data)
	},
	//导出模板
	exp(data) {
		return axios.exportFile(URL + '/ftp/breakRule/exp', data, false)
	},
	//导入模板
	imp(data) {
		return axios.fileUpload(URL + '/ftp/breakRule/imp', data, false)
	},
}




